import request from '@/utils/request'

// 列表（分页）
export function pageList(query) {
  return request({
    url: '/system/declareAudit/pageList',
    method: 'get',
    loading: true,
    params: query
  })
}

// 修改
export function audit(data) {
  return request({
    url: '/system/declareAudit/audit',
    method: 'post',
    loading: true,
    data: data
  })
}

// 兑现
export function fulfill(data) {
  return request({
    url: '/system/declareAudit/fulfill',
    method: 'post',
    loading: true,
    data: data
  })
}

// 删除
export function remove(id) {
  return request({
    url: '/system/declareAudit/' + id,
    method: 'delete',
    loading: true
  })
}
